<template>
	<view class="container">
		<web-view :src="url"></web-view>
	</view>
</template>

<script setup>
	import {
		onLoad
	} from "@dcloudio/uni-app"
	import {
		ref
	} from 'vue'
	import {
		CONFIG
	} from "../../utils/config"
	import {
		userStore
	} from "../../store/userStore.js"
	const store = userStore()

	const url = ref("")
	onLoad((data) => {
		url.value = `${CONFIG.gaode_line_url}?start=${data.slon},${data.slat}&dest=${data.elon},${
			data.elat}&destName=${data.name}&key=${CONFIG.gaode_key}&jscode=${CONFIG.gaode_skey}`
		console.log(url.value);
	})
</script>

<style>
body{
		background-color: gainsboro;
	}
</style>